<?xml version="1.0" encoding="UTF-8"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
   xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
   xmlns:f="http://xmlns.jcp.org/jsf/core"
   xmlns:h="http://xmlns.jcp.org/jsf/html"
   xmlns:p="http://primefaces.org/ui"   
   xmlns:c="http://xmlns.jcp.org/jsp/jstl/core"
   template="/WEB-INF/templates/public/default.xhtml">
   
   	<f:metadata>	   	
	   	<f:viewParam name="firstResult" value="#{publicArticleList.firstResult}" />
	   	<f:viewParam name="categoryId" value="#{categoryHome.id}" ></f:viewParam>
	   	<f:viewParam name="categoryId" value="#{publicArticleList.categoryId}" ></f:viewParam>
   	</f:metadata>
   	
   	<ui:define name="head">
   		<style type="text/css">
			.Methbox_con ul {	
				zoom:1;
				background-color:#FFF;
			}
			.Methbox_con ul span {
				float:right;
				font-size: 12px;
				color: #999;
				padding-left:10px;
			}
			.Methbox_con li {
				height:33px;
				line-height:33px;
				background-image: url(../img/first/dot.gif);
				background-repeat: no-repeat;
				background-position: 0px center;
				padding-left:12px;
			}
			
			.Methbox_con li a {	
				display:block;
				text-overflow: ellipsis;	
				white-space: nowrap;
				overflow:hidden;
			
			}	
				
			.Methbox_con li span {
				float:right;
				color:#999;}
   		</style>
   	</ui:define>
   
   	<ui:define name="content">
   
		<h:form id="searchForm">
			<!--招标公告-->
			<div class="sub_wrap">
				<div class="Methbox_tit">
					<h2>#{categoryHome.instance.name}</h2>
				</div>
				<div class="Methbox_con">
					<ul>
						<p:repeat value="#{publicArticleList.resultList}" var="_article">							
							<li>
								<span style="float: right">
									<h:outputText value="#{_article.createDate}">
										<f:convertDateTime pattern="yyyy-MM-dd"/>
									</h:outputText>
								</span>		
								
								<p:link outcome="Article.xhtml" value="#{_article.title}">
									<f:param name="articleId" value="#{_article.id}"></f:param>
								</p:link>
							</li>	
						</p:repeat>
					</ul>		
					
					<ui:include src="/WEB-INF/templates/manage/pagination.xhtml">
						<ui:param name="entityList" value="#{publicArticleList}" />
					</ui:include>		
				</div>
			</div>
			
		</h:form>
   	</ui:define>
</ui:composition>
